/**
 * Created by on 2016/10/25.
 */
var logger = require('pomelo-logger').getLogger(__filename);

var Desk = function(opts){
    this.id = opts.id;
    this.gameType = opts.gameType;
    this.seats = {};
}

module.exports = Desk;

var proto = Desk.prototype;

proto.addSeat = function(seat){
    if(!this.seats[seat.id]){
        this.seats[seat.id] = seat;
        return;
    }

    logger.error("已经添加过了");
}

proto.removeSeat = function(seat){
    if(!!this.seats[seat.id]){
        this.seats[seat.id] = null;
        return;
    }

    logger.error("没有 seat 通过 seat 自己");
}

proto.removeSeatById = function(id){
    if(!!this.seats[id]){
        this.seats[id] = null;
        return;
    }
    logger.error("没有seat by id");
}

proto.